<?php

class Workset_Controller_Action_Helper_Json extends Zend_Controller_Action_Helper_Json {

    public function sendJson($data, $keepLayouts = false)
    {
        $data = $this->encodeJson($data, $keepLayouts);
        $response = $this->getResponse();
        $response->setBody($data);

        if (!$this->suppressExit) {
            Zend_Wildfire_Channel_HttpHeaders::getInstance()->flush();
            $response->sendResponse();
            exit;
        }

        return $data;
    }

}

?>